//
//  CourseCreationViewController.h
//  Gradekeeper0.2
//
//  Created by Tim Qian on 09-11-30.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Courses.h"
#import "Semester.h"

@interface CourseCreationViewController : UIViewController {
	IBOutlet UITextField *nameTextField;
	IBOutlet UITextField *numberTextField;
	IBOutlet UITextField *creditTextField;
	IBOutlet UITextField *typesTextField;
	IBOutlet UITextField *weightsTextField;
	IBOutlet UIButton *updateButton;
	Semester * semester;
}
@property (nonatomic, retain) Semester *semester;
@property (nonatomic, retain) IBOutlet UITextField *nameTextField;
@property (nonatomic, retain) IBOutlet UITextField *numberTextField;
@property (nonatomic, retain) IBOutlet UITextField *creditTextField;
@property (nonatomic, retain) IBOutlet UITextField *typesTextField;
@property (nonatomic, retain) IBOutlet UITextField *weightsTextField;
@property (nonatomic, retain) IBOutlet UIButton *updateButton;

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil semester:(Semester*)newSemester;
- (IBAction) update:(id)sender;
- (IBAction) cancelCreate:(id)sender;
- (void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex;
//- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string;
- (BOOL)textFieldShouldReturn:(UITextField *)textField;

@end
